package com.adgox.tiantianbiting.listen.index;

import com.adgox.tiantianbiting.base.BasePresenter;
import com.adgox.tiantianbiting.base.BaseView;
import com.adgox.tiantianbiting.bean.HistoryBean;
import com.adgox.tiantianbiting.bean.PageBean;
import com.adgox.tiantianbiting.bean.SubProgramBean;

import java.util.List;

/**
 * Created by tang on 2019/1/8.
 */

public class ListenContract {
    interface Presenter extends BasePresenter{
        void getHistroy(int startPoint,int maxPage,int userId);
        void getCollect(int startPoint,int maxPage,int userId);
        void getRecommend(int userId);
    }

    interface View extends BaseView<Presenter>{
        void onSetHistory(PageBean<HistoryBean> list);
        void onGetHistoryFailed(String msg);

        void onSetCollect(PageBean<SubProgramBean> list);
        void onGetCollectFailed(String msg);

        void onSetRecommend(List<SubProgramBean> list);
        void onGetRecommendFailed(String msg);
    }
}
